package com.liuugoqing.behavioral.order;

import java.util.HashMap;
import java.util.Map;

/**
 * 命令内容
 * @Author : liugq
 * @Date : 2022/7/6 17:13
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public class Order {
    //桌号
    private int diningTable;
    //菜单
    private Map<String,Integer> foodDic = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDic() {
        return foodDic;
    }

    /**
     * 添加食物方法
     * @param foodName  食物名称
     * @param number 分量
     */
    public void setFoodDic(String foodName,int number) {
        this.foodDic.put(foodName,number);
    }
}
